SET(LIBRARY_OUTPUT_PATH ${DEMO_SOURCE_DIR}/lib)
SET(CMAKE_C_COMPILER g++)
SET(SRC_LIST jpegcompress.cpp )
#INCLUDE_DIRECTORIES(${DEMO_SOURCE_DIR}/include /opt/jpeg/include/)
#LINK_DIRECTORIES(/opt/jpeg/lib)
#ADD_LIBRARY(jpegcompress SHARED ${SRC_LIST} )
#SET_TARGET_PROPERTIES(jpegcompress PROPERTIES VERSION 1.0 SOVERSION 1)
#TARGET_LINK_LIBRARIES(jpegcompress jpeg)
ADD_LIBRARY(jpegcompress STATIC ${SRC_LIST} )
#TARGET_LINK_LIBRARIES(jpegcompress
#    "-W1,--whole-archive"
#    jpeg.a
#    "W1,--no-whole-archive")
#SET_TARGET_PROPERTIES(jpegcompress_s PROPERTIES OUTPUT_NAME "jpegcompress")
